import { Module } from "@nestjs/common";
import { OrderController } from "./order.controller";
import { TypeOrmModule } from "@nestjs/typeorm";
import { CompanyModule } from "src/modules/company/company.module";
import { Order } from "./order.entity";
import { OrderService } from "./order.service";
import { TypeModule } from "src/modules/type/type.module";
import { QualityModule } from "src/modules/quality/quality.module";
import { ClientModule } from "src/modules/client/client.module";
import { UserModule } from "src/modules/user/user.module";
import { StatisticModule } from "src/modules/statistics/statistic.module";

@Module({
  imports: [
    TypeOrmModule.forFeature([Order]),
    CompanyModule,
    TypeModule,
    QualityModule,
    ClientModule,
    UserModule,
    StatisticModule,
  ],
  controllers: [OrderController],
  providers: [OrderService],
  exports: [OrderService],
})
export class OrderModule {}
